<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="${_ctx}" >
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>规格商品列表</title>
<link rel="stylesheet" type="text/css" href="css/htcomlistcs.css" />
		<script type="text/javascript" src="js/jquery-2.2.3.min.js"></script>
		<script type="text/javascript">
			$(function(){
				$(".selecttiaojian").click(function(){
					$(".dropdown1").toggle();
				})
				$(".piliang").click(function(){
					$(".dropdown2").toggle();
				})
			})
		</script>
	</head>
	<body>
		<div class="lg-side">
			<div class="inbox-head">
				<h3>${cname}</h3>
				<form class="pull-right position">
					<input type="text" placeholder="请输入规格值" class="sr-input" />
					<button type="button" class="btn sr-btn">
						<div>
							<img src="imgs/htimgs/sousuo.png" />
						</div>
					</button>
				</form>
			</div>
			<div class="inbox-body">
				<div class="mail-option">
					
					<div class="btn-group">
						<a target="frm" href="htmain?v=addguigecomm&cname=${cname}&cid=${cid}" class="btn-a">
							添加规格商品
						</a>
					</div>
					
					<ul class="unstyled pull-right">
						<li>
							<span>1</span>
							<span>/</span>
							<span>10</span>
						</li>
						<li>
							<a>
								<img src="imgs/htimgs/fyleft.png" >
							</a>
						</li>
						<li>
							<a>
								<img src="imgs/htimgs/fyright.png" >
							</a>
						</li>
					</ul>
				</div>
				<table class="list-table">
					<thead>
						<tr>
							<c:forEach items="${camlist}" var="c" >
							<th>${c.attname}</th>
							</c:forEach>
							<th>进价</th>
							<th>售价</th>
							<th>库存</th>
							<th>操作</th>
						</tr>
					</thead>
					<c:forEach var="c" items="${sublist}">
					<tr>
						<c:forEach var="v" items="${c.list}">
						<td>
							<a>${v.atvname}</a>
						</td>
						</c:forEach>
						<td>
							<a>￥<span>${c.sbid}</span></a>
						</td>
						<td>
							<a>￥<span>${c.sprice}</span></a>
						</td>
						<td>
							<a>${c.scount}</a>
						</td>
						<td>
							<a target="frm" href="addcomm?v=updateguige&cname=${cname}&cid=${cid}&sid=${c.sid}">
								<img src="imgs/htimgs/spbianji.png" />
							</a>
						</td>
					</tr>
					</c:forEach>
				</table>
			</div>
		</div>
	</body>
</html>